<template>
    <div id="wrap">
        <h1>文本插值&原始HTML</h1>
        <p>{{ str }}</p>
        <p>{{ ramHtml }}</p>
        <p v-text="ramHtml"></p>
        <hr />
        <!-- ？{{  }}文本插值表达式 -->
        <p>usimg text :{{ ramHtml + '后缀字符串' }}</p>
        <p v-text="ramHtml + '后缀字符串'"></p>
        <p v-html="ramHtml + '后缀字符串'"></p>
    </div>
</template>

<script lang="ts">
export default {
    name: 'studemo10',
}
</script>
<script lang="ts" setup>
import { ref } from 'vue'
const str = ref('hello world')
const ramHtml = ref('<span style="color:red">hello world</span>')
</script>
<style lang="scss">
#wrap {
    width: 100%;
    height: 100%;
    text-align: center;
    margin-top: 20px;
    font-size: 18px;

    h1 {
        font-size: 50px;
        margin-bottom: 20px;
        color: rgb(243, 231, 233);
    }

    p {
        font-size: 30px;
        color: rgb(243, 231, 233);
    }
}
</style>